import * as d3 from 'd3';

export function date_to_str(specifier: string) {
  return d3.timeFormat(specifier);
}

export function str_to_date(specifier: string) {
  return d3.timeParse(specifier);
}
